﻿using System.Collections.Generic;
using System.IO;

namespace NFox.Pycad
{
    public class SpecPackage : Package
    {

        public static readonly List<string> Names = new List<string> { "data","loading", "unloaded", "commands" };

        public SpecPackage(DirectoryInfo dir) : base(dir)
        { }

        public override int Level { get { return -100 + Names.IndexOf(Name); } }

        public override string Path
        {
            get { return _path ?? $"{Parent.Path}\\properties\\{Name}"; }
        }

        public override string FullName
        {
            get { return $"{Parent.FullName}.properties.{Name}"; }
        }

    }
}
